package com.shopx.base.exception;

import com.shopx.base.constants.ResultCodeEnum;

/**
 * 业务层面异常
 *
 * @author Administrator
 */
public class ShopxException extends RuntimeException {
  private String statusCode;

  public ShopxException(){}

  public ShopxException(ResultCodeEnum resultCodeEnum) {
    super(resultCodeEnum.value());
    this.statusCode = resultCodeEnum.value();
  }

  public String getStatusCode() {
    return statusCode;
  }
}
